﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelOrderNumber.aspx.cs" Inherits="CardLogistics.Web.MainPage.SelectPage.SelOrderNumber" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>订单表</title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../js/jquery.js"></script>
</head>
<body>
    <form runat="server" id="f2">
    <div class="rightinfo">
        <asp:Repeater ID="rptList" runat="Server">
            <HeaderTemplate>
                <table class="tablelist">
                    <thead>
                        <tr>
                            <th>
                                选择
                            </th>
                               <th>
                                订单编号
                            </th>
                            <th>
                                批次号
                            </th>
                            <th>
                                订单日期
                            </th>
                            <th>
                                到货日期
                            </th>
                               <th>
                                起始卡号
                            </th>
                            <th>
                                结束卡号
                            </th>
                            <th>
                                应有数量/张
                            </th>
                           <%-- <th>
                                实际数量/张
                            </th>--%>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center" width="70px">
                       <a href="#" onclick="ReturnSelData('<%# Eval("ID")%>','<%# Eval("ORDERNO")%>','<%# Eval("TotalNumber")%>');" style="color:Blue;">选择</a>
                    </td>
                    <td>
                        <%# Eval("ORDERNO")%>
                    </td>
                    <td>
                        <%# Eval("BATCHNO")%>
                    </td>
                    <td >
                       <%#string.Format("{0:d}", Eval("ORDERDATA"))%>
                    </td>
                    <td>
                         <%#string.Format("{0:d}", Eval("GETDATA"))%>
                    </td>
                    <td>
                        <%# Eval("STARTNO")%>
                    </td>
                    <td>
                        <%# Eval("ENDNO")%>
                    </td>
                      <td>
                        <%# Eval("TotalNumber")%>
                    </td>
                  <%--  <td>
                        <%# Eval("CardNumber")%>
                    </td>--%>
                    
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody></table>
            </FooterTemplate>
        </asp:Repeater>
        <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
            runat="server" Width="100%" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页"
            NextPageText="下一页" PageSize="10" PrevPageText="上一页" ShowCustomInfoSection="left"
            ShowInputBox="Never" CustomInfoTextAlign="Left" LayoutType="Table" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
        <asp:HiddenField ID="hdfDelete" runat="server" />
    </div>
    <script type="text/javascript">
        $('.tablelist tbody tr:odd').addClass('odd');

        function ReturnSelData(id, PConNo,TotalNumber) {
            //返回：[0]订单ID [1]订单编号 [2]订单数量
            document.getElementById("hf_OrderId").value = id; //订单ID
            document.getElementById("OrderNo").value = PConNo; //订单编号
            document.getElementById("DueNumber").value = TotalNumber; //订单数量
            $.tipsWindow.removeBox();
        }

    </script>
    </form>
</body>
</html>
